package com.ruoyi.cderp.mapper;

import java.util.Date;
import java.util.List;

import com.ruoyi.cderp.domain.*;
import org.apache.ibatis.annotations.Param;

/**
 * 客户对账单Mapper接口
 *
 * @author ruoyi
 * @date 2025-03-11
 */
public interface CustomerSettleCheckSheetMapper
{
    /**
     * 查询客户对账单
     *
     * @param id 客户对账单主键
     * @return 客户对账单
     */
    public CustomerSettleCheckSheet selectCustomerSettleCheckSheetById(String id);

    /**
     * 查询客户对账单列表
     *
     * @param customerSettleCheckSheet 客户对账单
     * @return 客户对账单集合
     */
    public List<CustomerSettleCheckSheet> selectCustomerSettleCheckSheetList(CustomerSettleCheckSheet customerSettleCheckSheet);

    /**
     * 新增客户对账单
     *
     * @param customerSettleCheckSheet 客户对账单
     * @return 结果
     */
    public int insertCustomerSettleCheckSheet(CustomerSettleCheckSheet customerSettleCheckSheet);

    /**
     * 修改客户对账单
     *
     * @param customerSettleCheckSheet 客户对账单
     * @return 结果
     */
    public int updateCustomerSettleCheckSheet(CustomerSettleCheckSheet customerSettleCheckSheet);

    /**
     * 删除客户对账单
     *
     * @param id 客户对账单主键
     * @return 结果
     */
    public int deleteCustomerSettleCheckSheetById(String id);

    /**
     * 批量删除客户对账单
     *
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteCustomerSettleCheckSheetByIds(String[] ids);

    /**
     * 批量删除客户对账单明细
     *
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteCustomerSettleCheckSheetDetailBySheetIds(String[] ids);

    /**
     * 批量新增客户对账单明细
     *
     * @param customerSettleCheckSheetDetailList 客户对账单明细列表
     * @return 结果
     */
    public int batchCustomerSettleCheckSheetDetail(List<CustomerSettleCheckSheetDetail> customerSettleCheckSheetDetailList);


    /**
     * 通过客户对账单主键删除客户对账单明细信息
     *
     * @param id 客户对账单ID
     * @return 结果
     */
    public int deleteCustomerSettleCheckSheetDetailBySheetId(String id);

    //查询客户对账详情
    List<CustomerSettleCheckSheetDetail> selectFeeSheetCheckDetailIn(String sheet_id);


    //查询客户与客户预收款信息
    List<CustomerSettleCheckSheetDetail> selectCustomerSettlePreList(@Param("startDate") Date startDate, @Param("endDate") Date endDate, @Param("customerId") String customerId);


    //查询客户与客户费用的明细
    List<CustomerSettleCheckSheetDetail> selectFeeSheetFeeSheetList(@Param("startDate") Date startDate,@Param("endDate") Date endDate, @Param("customerId") String customerId);

    //查询客户与销售出库单的明细
    List<CustomerSettleCheckSheetDetail> selectTabSaleOutSheetList(@Param("startDate") Date startDate,@Param("endDate") Date endDate, @Param("customerId") String customerId);

    //查询客户与销售退单表的明细
    List<CustomerSettleCheckSheetDetail> selectTabSaleReturnList(@Param("startDate") Date startDate,@Param("endDate") Date endDate, @Param("customerId") String customerId);


    //查询客户与客户预收款信息
    List<CustomerSettleCheckSheetDetail> selectCustomerSettlePreDetail(String sheet_id);


    //查询客户与客户费用的明细
    List<CustomerSettleCheckSheetDetail> selectFeeSheetFeeSheetDetail(String sheet_id);

    //查询客户与客户费用的明细
    List<CustomerSettleCheckSheetDetail> selectTabSaleOutSheetDetail(String sheet_id);

    //查询客户与销售退单表的明细
    List<CustomerSettleCheckSheetDetail> selectTabSaleReturnDetail(String sheet_id);
}
